package com.hikvision.open.app

import androidx.multidex.MultiDexApplication
import com.hikvision.hatomplayer.HatomPlayerSDK
import com.hikvision.open.app.utils.UnzipWorker
import com.hikvision.open.app.utils.Utils
import java.util.concurrent.Executors

class MyApp : MultiDexApplication() {
    override fun onCreate() {
        super.onCreate()
        Utils.init(this)
        //执行任务
        if (UnzipWorker.shouldDoUnzip()) {
            Executors.newSingleThreadExecutor().execute { UnzipWorker.doWork() }
        }
        HatomPlayerSDK.init(this, "", false)
    }
}